package com.watson.demo.mybatis.service.impl;


import com.watson.demo.mybatis.entity.TUser;
import com.watson.demo.mybatis.mapper.TUserMapper;
import com.watson.demo.mybatis.service.TUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * // todo
 * @author: llun
 * @date: 2022/2/14 14:57
 * @version: 1.0
 */
@Service
public class TUserServiceImpl  implements TUserService {
    @Autowired
    TUserMapper tUserMapper;

    @Override
    public void save(TUser tUser) {
        tUserMapper.save(tUser);
    }

    @Override
    public List<TUser> list() {
        List<TUser> list = tUserMapper.list();
        return list;
    }
}
